Skip to content

Conversation

@zhalvorsen
Copy link
Contributor

Fixes #86

  • Adds maximum certificate size for ML-DSA
  • Adds a remaining field to GetCertificateChain to fix the corner case where GetCertificateChainResponse.size == the size of the certificate
  • Adds detail about ML-DSA private key derivation

Fixes opencomputeproject#86

* Adds maximum certificate size for ML-DSA
* Adds a remaining field to GetCertificateChain to fix the corner case where GetCertificateChainResponse.size == the size of the certificate
* Adds detail about ML-DSA private key derivation

Signed-off-by: Zach Halvorsen <zhalvorsen@google.com>
| 0x08 | `U32` | 31:0 | `PROFILE` | One of `DPE_PROFILE_*`.
| 0x0C | `U32` | 31:0 | `CERTIFICATE_SIZE` | Number of bytes used in `CERTIFICATE_CHAIN`. Can be smaller than requested if no bytes are left to read.
| 0x10 | `BYTES` | 16383:0 | `CERTIFICATE_CHAIN` | Returned certificate chain. This may be a partial certificate chain.
| 0x0C | `U32` | 31:0 | `REMAINING` | Number of bytes remaining after this portion of the certificate chain.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jhand2 Instead of changing this ABI, what if we added a return status that was "There is still more data"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, ya I think that's how it works today: https://github.com/chipsalliance/caliptra-dpe/blob/main/verification/client/abi.go#L548-L551

Although in retrospect, InvalidArgument was probably a bad return code to choose :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DPE: Open comments on ML-DSA-87 Profile

2 participants